#ifndef PROC_H
# define PROC_H

#ifdef __linux__

#include <stddef.h>
#include <stdbool.h>
#include <sys/prctl.h>
// prctl(PR_SET_NAME, “process_name”, NULL, NULL, NULL);
// PR_SET_NAME
bool set_self_pname(char *name) {
    prctl(PR_SET_NAME, name, NULL, NULL, NULL);
}

#endif  //__linux__


#endif